package com.component.api.model.data;

import com.component.api.model.DataType;
import com.component.api.model.param.TableColumn;
import lombok.Data;

import java.util.List;

/**
 * 描述：
 * DataSet数据传递
 * @author xianggj
 * @Date 2021/10/19 17:14
 **/
@Data
public class SetData extends ColumnData {

    private static final long serialVersionUID = -1;

    public SetData() {}

    public SetData(Object dataset) {
        super(DataType.TABLE);
        this.dataset = dataset;
    }
    public SetData(Object dataset, List<TableColumn> columns) {
        super(DataType.TABLE, columns);
        this.dataset = dataset;
    }

    private Object dataset;

}
